/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package myBeanPavkage;

import javax.ejb.Singleton;
import javax.ejb.LocalBean;

/**
 *
 * @author ajou
 */
@Singleton
@LocalBean
public class IDGeneratorBean implements IDinterface{

    private long nextID;
    
    public IDGeneratorBean(){
        nextID = 100;
    }
    
    @Override
    public long generateID(){
        nextID++;
        return nextID;
    }
    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
